package com.dtp.logging;

import org.slf4j.Logger;

/**
 * 日志帮助类
 *
 * @author yanhom
 * @since 1.0.0
 *
 * @author muse
 **/
public final class LogHelper {

    private static Logger monitorLogger;

    /** 加载日志配置信息，并且出发monitorLogger初始化操作 */
    static {
        DtpLoggingInitializer.getInstance().loadConfiguration();
    }

    private LogHelper() { }

    /** 由 DtpLogbackLogging 或 DtpLog4j2Logging 调用该方法，负责初始化monitorLogger */
    public static void init(Logger logger) {monitorLogger = logger;}

    public static Logger getMonitorLogger() {return monitorLogger;}
}
